/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-10-28
 * Time: 22:16
 */
import java.util.Scanner;
interface Fruit{
    void eat();
}

class Apple implements Fruit{

    @Override
    public void eat() {
        System.out.println("吃苹果啦啦啦！！");
    }
}
class Orange implements Fruit{

    @Override
    public void eat() {
        System.out.println("吃橘子啦啦啦！！");
    }
}
class Factory {
    public String name;

    public static Fruit getInstance(String name) {
        if (name.equals("apple")){
            Apple apple = new Apple();
            return apple;
        }
        else if (name.equals("orange")){
            Orange orange = new Orange();
            return orange;
        }
        return null;
    }
}
public class Main{
    public static void main(String[] args) {
        String s;
        Scanner scan=new Scanner(System.in);
        s=scan.next();
        Fruit f=Factory.getInstance(s);
        if(f==null)
            System.out.println("没有此水果类型");
        else
            f.eat();
    }
}
